package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户充值明细记录对象 t_recharge_record
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TRechargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值记录ID，自增主键 */
    private Long rechargeId;

    /** 用户ID，关联t_user_info表 */
    @Excel(name = "用户ID，关联t_user_info表")
    private Long userId;

    /** 充值流水号 */
    @Excel(name = "充值流水号")
    private String rechargeFlowNumber;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 充值本金 */
    @Excel(name = "充值本金")
    private BigDecimal rechargePrincipal;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal giftAmount;

    /** 充值折扣 */
    @Excel(name = "充值折扣")
    private BigDecimal rechargeDiscount;

    /** 充值渠道 */
    @Excel(name = "充值渠道")
    private String rechargeChannel;

    /** 第三方充值流水号 */
    @Excel(name = "第三方充值流水号")
    private String thirdPartyRechargeFlowNumber;

    public void setRechargeId(Long rechargeId) 
    {
        this.rechargeId = rechargeId;
    }

    public Long getRechargeId() 
    {
        return rechargeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRechargeFlowNumber(String rechargeFlowNumber) 
    {
        this.rechargeFlowNumber = rechargeFlowNumber;
    }

    public String getRechargeFlowNumber() 
    {
        return rechargeFlowNumber;
    }

    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    public void setRechargePrincipal(BigDecimal rechargePrincipal) 
    {
        this.rechargePrincipal = rechargePrincipal;
    }

    public BigDecimal getRechargePrincipal() 
    {
        return rechargePrincipal;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setRechargeDiscount(BigDecimal rechargeDiscount) 
    {
        this.rechargeDiscount = rechargeDiscount;
    }

    public BigDecimal getRechargeDiscount() 
    {
        return rechargeDiscount;
    }

    public void setRechargeChannel(String rechargeChannel) 
    {
        this.rechargeChannel = rechargeChannel;
    }

    public String getRechargeChannel() 
    {
        return rechargeChannel;
    }

    public void setThirdPartyRechargeFlowNumber(String thirdPartyRechargeFlowNumber) 
    {
        this.thirdPartyRechargeFlowNumber = thirdPartyRechargeFlowNumber;
    }

    public String getThirdPartyRechargeFlowNumber() 
    {
        return thirdPartyRechargeFlowNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rechargeId", getRechargeId())
            .append("userId", getUserId())
            .append("rechargeFlowNumber", getRechargeFlowNumber())
            .append("rechargeTime", getRechargeTime())
            .append("rechargePrincipal", getRechargePrincipal())
            .append("giftAmount", getGiftAmount())
            .append("rechargeDiscount", getRechargeDiscount())
            .append("rechargeChannel", getRechargeChannel())
            .append("thirdPartyRechargeFlowNumber", getThirdPartyRechargeFlowNumber())
            .toString();
    }
}
